package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);

    void deleteRoleIdByPermission(Integer id);

    void delete(Integer id);

    void add(Permission permission);

    Permission findPermissionByKeyword(String keyword);

    Set<Permission> findAll();

    Page<Permission> selectByCondition(String queryString);

    Permission findById(Integer id);

    void edit(Permission permission);
}
